<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  </head>
  
  <body>
  <s:if test="#session.allBookType==null"><s:action name="showBookType" namespace="/book"></s:action></s:if> 
     <table border="1">
     <tr><td>已有的类别</td><td>类别名</td></tr>
       <s:iterator value="#session.allBookType" >
       		<tr><td>已有的类别</td><td><s:property value="value"/></td></tr>
       	  </s:iterator>
     </table>
    <s:form action="addBookType" theme="simple" method="post">
    	新增类别名：<s:textfield name="curBookType"></s:textfield><br>
    	<s:submit value="提交" ></s:submit>	
    </s:form>
  </body>
</html>
